package com.zhoug.demo.player.http;

import android.util.Base64;
import android.view.Gravity;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * 常量定义
 *
 * @Author 35574
 * @Date 2020/7/10
 * @Description
 */
public class BaseConstant {

    //Base64默认编码方式
    public static Charset CHARSET = StandardCharsets.UTF_8;
    /**
     * 编码和解码的flag
     * {@link Base64#DEFAULT} :最后有个换行符\n
     * {@link Base64#NO_PADDING} :这个参数是略去加密字符串最后的”=”
     * {@link Base64#NO_WRAP} :这个参数意思是略去所有的换行符
     */
    public static int BASE64_FLAG = Base64.NO_WRAP;
    public static final String MAP_KEY = "b3b19598d77b4e0e810abd941202fd4e";

    public static final String PATTERN_DATE = "yyyy-MM-dd";
    public static final String PATTERN_DATE_TIME = "yyyy-MM-dd HH:mm";
    public static final String PATTERN_DATE_TIME2 = "yyyy-MM-dd HH:mm:ss";
    public static final String PATTERN_TIME = "HH:mm";

    /**
     * 开始时间和结束时间的连接符
     */
    public static final String TIME_START_END_CONNECTOR = "至";
    /**
     * 文件时间戳
     */
    public static final String PATTERN_TIME_FOR_FILE_NAME = "yyyyMMdd_HHmmss";
    public static final String SPLIT_DATE = "-";
    public static final String SPLIT_TIME = ":";

    //选择音视频文件的最大长度
    public static final long CHOOSER_FILE_DURATION_MAX = 1000 * 60 * 10;
    public static final long CHOOSER_FILE_DURATION_MIN = 1000 * 1;


    /**
     * bd09ll（百度经纬度坐标）
     * bd09mc（百度墨卡托坐标）
     * gcj02（经国测局加密的坐标）
     * wgs84（gps获取的原始坐标
     */
    public static final String COORD_TYPE = "bd09ll";


    //参数key
    public static final String PARAM_ID = "id";//id
    public static final String PARAM_FIRM_ID = "firm_id";//企业id
    public static final String PARAM_FIRM_NAME = "firm_name";//企业id
    public static final String PARAM_TITLE = "title";//标题
    public static final String PARAM_NAME = "name";//name
    public static final String PARAM_STRING_ARRAY_LIST = "StringArrayList";//StringArrayList
    public static final String PARAM_DATA = "data";
    public static final String PARAM_DATA2 = "data2";
    public static final String PARAM_STATUS = "status";
    public static final String PARAM_WARNING_TYPE = "WarningType";
    public static final String PARAM_NUMBER = "number";//int
    public static final String PARAM_PAGE_MENU= "pageMenu";//菜单
    public static final String PARAM_BOOLEAN= "boolean";//


    //必填项星号的位置
    public static final int REQUIRED_STAR_GRAVITY = Gravity.START;

    public static final String META_DATA_NAME_ACTIVITY_MAIN = "mainActivity";
    public static final String META_DATA_NAME_ACTIVITY_LOGIN = "loginActivity";


    public static final String USER_AGREEMENT_TEXT = "已阅读并同意<<用户协议>>和<<隐私政策>>";
    public static final String USER_AGREEMENT_HINT = "请阅读并同意<<用户协议>>和<<隐私政策>>";

    public static final long PERMISSION_REQUEST_INTERVAL = 24 * 60 * 60 * 1000;
    //    public static final long PERMISSION_REQUEST_INTERVAL=10*1000;
//错误提示的最大长度
    public static final int ERROR_HINT_MAX_LENGTH = 100;

    /**
     * AES文件加密的秘钥
     */
    public static final String ASSETS_ENCRYPT_AES_TRANSFORMATION="AES/CBC/PKCS7Padding";
    public static final String ASSETS_ENCRYPT_AES__KEY="jkdf64ghdfh3fgDFGggh55fFgfDdsD4e";
    public static final String ASSETS_ENCRYPT_AES__IV="S475445DF4GD5FG4";
    /**
     * SharedPreferences加密 秘钥
     */
    public static final String SP_ENCRYPT_AES_KEY="ha2sdkf1sdkh351k1234jhj321njhjaa";
    public static final String SP_ENCRYPT_AES_IV="nk2g75sdf4df5gs5";
    public static final String Authority_ADD = "没有添加的权限";

    public static final String UNIT_WENDU="℃";//温度单位
    public static final String UNIT_SHIDU="%RH";//湿度单位
    public static final String UNIT_MAN="人";//单位人
    public static final String UNIT_WAB_YUAN="万元";//
    public static final String UNIT_SQUARE_METER="㎡";//
    public static final String UNIT_YEAR="年";//
    public static final String UNIT_DAY="天";//

    public static final String SPLIT_1="~";//
    public static final String SPLIT_2="-";//


    public static final int ENUM_NULL_VALUE=-1111;

}
